<?php
defined('BASEPATH') OR exit('No direct script access allowed');
?><!DOCTYPE html><html lang="en">
	<head>
		<!--加载header文件-->
		<?php
		include_once 'public/views/header.php';
		include_once 'public/home/html/laydate.php';
        include_once 'public/home/html/alert.php';
        include_once "public/home/html/search-select.php";
		?>
		<link rel="stylesheet" href="public/css/list.css" />
		<link rel="stylesheet" href="public/xr/xrDatatable.css" />
		<script src="public/xr/xrDatatable.js"></script>	
        <script src="public/home/js/function.js"></script>
		<script src="public/js/list.js"></script>
		<script src="cust/js/statisticsAttendedList.js"></script>
	</head>
	<body>
		<input type="hidden" id='url' value="<?php echo base_url()?>"><input type="hidden" id='is_show' value="<?php echo $is_show; ?>">
		<div class="page-container container">
			<div class="searchForm">
			    <div class="searchForm-title"><i class="icon-table searchForm-title-icon"></i>数据表格<i class="icon-double-angle-up searchFormTitleIcon"></i></div>
			    <div class="searchForm-main">
					<form id="searchForm">
						<input type="text" name='start_time' id="start_time" placeholder="请选择起始时间"/>
						<input type="text" name='end_time' id="end_time" placeholder="请选择终止时间"/> 
						<select name="class_type" id="class_type">
                            <option value="-1">听课身份</option>
                            <?php foreach ((new AttendType())->getAll() as $k => $v): ?>
                                <option value="<?php echo $v[XPHEnum::Value]; ?>"><?php echo $v[XPHEnum::Caption]; ?></option>
                            <?php endforeach; ?>
                        </select>
                         <select name="course_units" id="course_units_1">
			               <option value="-1">开课单位名称</option>
			               <?php foreach ($course_units as $k => $v):?>
			                <option value="<?=$v['course_units']?>"><?=$v['course_units']?></option>
			               <?php endforeach ?>
			             </select>
                         <select name="dept_name" id="dept_name" style="display: none;">
			               <option value="-1">分院名称</option>
			               <?php foreach ($dept_name as $k => $v):?>
			                <option value="<?=$v['name']?>"><?=$v['dept_name']?></option>
			               <?php endforeach ?>
			             </select>
			            
						<input type="text" name='teacher_name' id="teacher_name" placeholder="请输入教师姓名" style="display: none" /> 
						<input type="radio" name="type" id="radio1"  value="1" style="width:15px;height: 15px;margin-left: 10px;" > 按开课单位分类	
						<input type="radio" name="type"  value="2" style="width:15px;height: 15px;margin-left: 10px;" >按教师分类	
						    
						        	
					</form>
				</div>
			</div>
			<div class="operationRow">
 				<button class="pageItemButton" onclick="Export()"><i class="icon-edit"></i>导出</button>
 				<span  id="tip"style="color: red">显示各个分院<b>(被听课)</b>信息,人员列表数据为教师,最高/低分显示为教师</span>
			</div>
			        
			<div class="listcontent">
				<div class='xrTableRow'>
					<table id="table" class="xrTable">
						<thead>
							<tr>
								<th name="_xrno"></th>
								<!-- <th name="_oper" style="width: 120px;">操作</th> -->
                                <th name="_course_units" id="course_units"> 学院 </th>
                                <!-- <th name="_attend_num" > 被听人数 </th> -->
                                <!-- <th name="_attend_count" > 被听人次 </th> -->
                                <th name="_unitsupervisor_num" class="dudao"> 被二级督导听课人数 </th>
                                <th name="_unitsupervisor_count" class="dudao"> 被二级督导听课次数 </th>
                                <th name="_schoolsupervisor_num" class="dudao"> 被校督导听课人数 </th>
                                <th name="_schoolsupervisor_count" class="dudao">被校督导听课次数 </th>
                                <th name="_outsidesupervisor_num" id="outsidesupervisor_num" class="dudao">被外聘督导听课人数 </th>
                                <th name="_outsidesupervisor_count" id="outsidesupervisor_count" class="dudao" > 被外聘督导听课次数 </th>
                                <th name="_teachersupervisor_num" > 被教师听课人数 </th>
                                <th name="_teachersupervisor_count" >被教师听课次数 </th>

                     
                             <!--    <th name="_avg_level" > 教学水平平均分 </th>
                             <th name="_avg_effect" > 教学效果平均分 </th>
                             <th name="_abovenine_level" > 教学水平90分(含)以上 </th>
                             <th name="_aboveeight_level" > 教学水平80以下 </th>
                             <th name="_abovenine_effect" > 教学效果90分(含)以上 </th>
                             <th name="_aboveeight_effect" > 教学效果80以下 </th> -->

                                <th name="_avg_total_score" id="avg_total_score" class="dudao"> 总平均分 </th>
                                <th name="_avg_unit_score"  id="avg_unit_score" class="dudao"> 二级督导听课总平均分 </th>
                                <th name="_avg_school_score" id="avg_school_score" class="dudao"> 校督导听课总平均分 </th>
                                <th name="_avg_outside_score"  id="avg_outside_score" class="dudao"> 外聘督导听课总平均分 </th>
                                <th name="_avg_teacher_score"  id="avg_teacher_score"> 教师听课总平均分 </th>

                                <th name="_max_total_score" > 总分最高分 </th>
                                <th name="_min_total_score" > 总分最低分 </th>

                                <!-- <th name="_max_level" > 教学水平最高分 </th>
                                <th name="_min_level" > 教学水平最低分 </th>
                                <th name="_max_effect" > 教学效果最高分 </th>
                                <th name="_min_effect" > 教学效果最低分 </th> -->
                                
							</tr>
						</thead>
					</table>
				</div>
			</div>
		</div>
	</body>
	<script>
		$("body").keydown(function() {
             if (event.keyCode == "13") {//keyCode=13是回车键
                 $('.searchButton').click();
             }
         });

		$("#title").change(function(){
			$('.searchButton').click();
		});
		$("#class_name").change(function(){
			$('.searchButton').click();
		});
		   
		$("#class_type").change(function(){
			$('.searchButton').click();
		});
		$("#dept_name").change(function(){
			$('.searchButton').click();
		});
		$("#course_units_1").change(function(){
			$('.searchButton').click();
		});

		
	</script>
</html>